<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <input
      type="text"
      name="useranme"
      id="input1"
      src="./a.js"
      username="jack"
      max-age="20"
    />
    <script>
      const input = document.getElementById("input1");
      console.log(input.getAttribute("max-age"));
    </script>
  </body>
</html>
